﻿#include "GameLevelOne.h"
#include"Sprite.h"
#include"Enemy.h"
#include"SupplyBank.h"
#include"WeaponBank.h"
#include"Collider.h"
GameLevelOne::GameLevelOne(QSize size, QObject* parent)
	:Fighting(size,parent)
{
	init();
}

void GameLevelOne::init()
{
	//玩家
	m_Player->closeBlood();
	m_Player->setMaxBombNum(3);
	//玩家武器库
	m_Player->getWeaponBank()->setMaxBulletLevel(4);
	m_Player->getWeaponBank()->setBulletDemotion(30_s);
	m_Player->getWeaponBank()->setGuidedMissileCD(25_s);
	//敌机组
	m_enemy->setHpPlane(5, EnemyPlaneProperty::small);
	m_enemy->setPlaneType(EnemyPlaneProperty::small);
	m_enemy->setTimerPlane(4_s,8_s, EnemyPlaneProperty::small);
	m_enemy->setAutoBullet(true, 1_s, EnemyPlaneProperty::small);
	//补给包组
	m_SupplyBank->setSteplenSupply(100,Supply::Type::bullet);
	m_SupplyBank->setTimerSupply(8_s, 15_s, Supply::bullet);
	m_SupplyBank->setSteplenSupply(150, Supply::Type::bomb);
	m_SupplyBank->setTimerSupply(15_s, 30_s, Supply::bomb);

	m_Collider->closeTrackingPlayers();
}
